package cn.cumt.lkk.service.impl;

import cn.cumt.lkk.dao.PersonDao;
import cn.cumt.lkk.model.Person;
import cn.cumt.lkk.service.PersonManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by lkk on 2015/4/17.
 */
@Service("personManager")
public class PersonManagerImpl extends GenericManagerImpl<Person,Long> implements PersonManager {

    private PersonDao personDao;

    @Autowired
    PersonManagerImpl(PersonDao personDao){
        super(personDao);
        this.personDao = personDao;
    }

    @Override
    public List<Person> findByLastName(String lastName) {
        return personDao.findByLashName(lastName);
    }
}
